import { API_CONFIG } from "../config";
import request  from "../api/index.js"

export const getConfigMapListHandler = (data) => {
    return request(API_CONFIG.getConfigListMapApi,data,"get",2000)
}

export const deleteConfigMapHandler = (clusterId,namespace,name) => {
    return request(API_CONFIG.deleteConfigMapApi, {clusterId,namespace,name}, "post", 2000)
}

export const createConfigMapHandler = (data) => {
    return request(API_CONFIG.createConfigMapApi, data, "post", 2000)
}

export const updateConfigMapHandler = (data) => {
    return request(API_CONFIG.updateConfigMapApi, data, "post", 2000)
}

export const getConfigMapDetailHandler = (data) => {
    return request(API_CONFIG.getConfigMapApi, data, "get", 3000)
}